<template>
	<div class="contents">
		<van-nav-bar
		  title="绑定手机号"
		  left-text="返回"
		  left-arrow
		  @click-left="onClickLeft"
		/>
		<div class="content">
				<van-row class="card-border card-pl">
					<van-col span="4" class="card-h">手机号:</van-col>
					<van-col span="20" class="card-h card-pl">
						<input type="text" placeholder="请输入手机号">
					</van-col>
				</van-row>
				<van-row class="card-border card-pl">
					<van-col span="4" class="card-h">验证码:</van-col>
					<van-col span="14" class="card-h card-pl">
						<input type="text" placeholder="请输入验证码">
					</van-col>
					<van-col span="6">
						<van-button type="primary" size="small" class="sendcode">发送验证码</van-button>
					</van-col>
				</van-row>
				<section class="loginout">
					<van-button class="loginoutbtn" block>立即绑定</van-button>
				</section>
		</div>
	</div>
</template>

<script>
import Vue from 'vue'
import { Row, Col, Cell, CellGroup, Button, NavBar } from 'vant'
Vue.use(Row).use(Col).use(Cell).use(CellGroup).use(Button).use(NavBar)

export default {
	data () {
		return {}
	},
	methods: {
		onClickLeft () {
			this.$router.go(-1)
		}
	}
}
</script>

<style lang="scss" scoped="scoped">
@import '@/lib/reset.scss';
.card-border {
	@include rect(100%, .44rem);
	@include border(0 0 1px 0, #ccc, solid, null);
	input {
		@include rect(100%, 100%);
		border: none;
	}
}
.card-h {
	@include flexbox();
	@include align-items();
	height: .44rem;
}
.card-pl {
	padding-left: .1rem;
	box-sizing: border-box;
}
.sendcode {
	margin-top: .07rem;
	background: #696f80;
	color: #fff;
}
.loginout {
	padding: 0 .1rem;
	margin-top: .1rem;
	box-sizing: border-box;
}
.loginoutbtn {
	background: #696f80;
	color: #fff;
}
</style>
